<template>
	<view>
		<view  v-for="item in region" :key="item.id" style="width: 100%;height: 160upx;border-bottom: 1px solid #cbcbcb;display: flex;">
			<view @click="xiangqing(item)" style="width: 24%;height: 170upx;">
			<img style='width: 110upx;height: 110upx;margin-top: 36upx;margin-left: 30upx;' src='http://127.0.0.1:7001/public/WHJ/avatar1.png' />
			</view>
			<view  @click="xiangqing(item)" style="width: 76%;height: 170upx;">
			 <span style='font-size: 20px;display: flex;margin-top: 44upx;'>{{item.name}}</span>
			 <span style='font-size: 15px;display: flex;margin-top: 10upx;color: #cbcbcb;'>{{item.major}}</span>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				region:[]
			}
		},
		methods: {
			xiangqing(item){
				console.log(item.id)
				uni.navigateTo({
					url:`/pages/searchdel/searchdel3?id=${item.id}`
				})
			}
		},
		onLoad(){
			this.$api.getTutorList().then(res=>{
				this.region=res.data
			})
				}
	}
</script>

<style>

</style>
